import { createApp } from 'vue'
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import pinia from './store'//pinia
import router from "./router"; // 路由
import 'amfe-flexible'
import { Cell, CellGroup } from 'vant';
//注册全局组件 navigation
import navigation from './components/navigation/index.vue'
import navbar from './components/navbar/index.vue'
//引入vant
import { Area, Empty, List, PullRefresh, CountDown, Grid, GridItem, Icon, Form, Field, Checkbox, CheckboxGroup, Stepper, Popup, Sidebar, SidebarItem, Swipe, SwipeItem, Button, Tabbar, TabbarItem, Tab, Tabs, NavBar, BackTop, Search, Tag, Toast } from "vant";
import 'vant/lib/index.css'
import './permission'
const app = createApp(App)
app.component("navigation", navigation)
app.component('navbar', navbar)
app.use(pinia)
app.use(router)
app.use(Tab);
app.use(Toast);
app.use(Tabs);
app.use(Search);
app.use(BackTop);
app.use(Grid);
app.use(GridItem);
app.use(Button);
app.use(Icon);
app.use(Form);
app.use(Field);
app.use(Cell);
app.use(CellGroup);
app.use(Sidebar);
app.use(SidebarItem);
app.use(Swipe);
app.use(SwipeItem);
app.use(Tabbar);
app.use(TabbarItem);
app.use(ElementPlus)
app.use(NavBar)
app.use(List)
app.use(PullRefresh)
app.use(List);
app.use(Checkbox);
app.use(CheckboxGroup);
app.use(Stepper);
app.use(Popup);
app.use(Tag);
app.use(NavBar);
app.use(CountDown);
app.use(Empty);
app.use(Area);
app.mount('#app')

